﻿namespace Triad.Controls
{
    using System;
    using System.Security.Permissions;
    using System.Web;

    /// <devdoc>
    ///    Provides doata for TreeView events
    /// </devdoc> 
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public sealed class ComboBoxItemChangeEventArgs : EventArgs
    {
        /// <summary>
        /// The selections index
        /// </summary>
        private int iIndex;
        private string sXml;
        /// <summary>
        /// Initializes a new instance of the <see cref="OnIndexChangeEventArgs"/> class.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <param name="Xml">The XML.</param>
        /// <remarks>
        /// Author: tim.fischer,   8/25/2008 - 1:48 PM
        /// Modified By:
        /// </remarks>
        public ComboBoxItemChangeEventArgs(int index, string Xml)
        {
            iIndex = index;
            sXml = Xml;
        }

        /// <summary>
        /// Gets the index.
        /// </summary>
        /// <value>The index.</value>
        public int index
        {
            get
            {
                return iIndex;
            }
        }
        /// <summary>
        /// Gets the XML.
        /// </summary>
        /// <value>The XML.</value>
        public string Xml
        {
            get
            {
                return sXml;
            }
        }

    }
    
}
